<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>企业登录</title>
		<!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="<%=request.getContextPath() %>/static/common/plugin/jquery-1.11/jquery.min.js"></script>
		<!-- 最新的Bootstrap 核心 JavaScript 文件 -->
		<script src="<%=request.getContextPath() %>/static/common/plugin/bootstrap-3.3.5/js/bootstrap.min.js"></script>
	</head>
	<body>
		<!-- 登录失败后的页面显示 -->
		<c:if test="${!empty param.loginError }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>用户名或密码错误！</strong>
			</div>
		</c:if>
		<c:if test="${!empty param.sessionInvalidate }">
			<div class="alert alert-danger alert-dismissible fade in" role="alert" style="text-align: center;">
		       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
		       <strong>会话已关闭，请重新登录！</strong>
			</div>
		</c:if>
		
		<center><h1>企业登录</h1></center>
		<hr>
		
		<form action="<%=request.getContextPath() %>/CompanyServlet?command=login" method="post">
		  <div class="form-group">
		    <input type="text" class="form-control" name="code" placeholder="帐号..." autofocus="autofocus" value="ssyt">
		  </div>
		  <div class="form-group">
		    <input type="password" class="form-control" name="password" placeholder="密码..." value="ssyt">
		  </div>
		  <input type="submit" class="btn btn-primary" value="登录">
		  <input type="button" class="btn btn-success" onclick="location='<%=request.getContextPath()%>/PositionServlet?command=listAllPosition'" value="返回首页"/>
		</form>
	</body>
</html>